package eip.chapter8.expiration;

import java.io.Serializable;
import java.util.Date;

public class RestaurantInquiry implements Serializable {

	private static final long serialVersionUID = -4546768116622879476L;
	
	private Date time;
	private int persons;
	
	public RestaurantInquiry() {
		
	}
	
	public RestaurantInquiry(Date time, int persons) {
		this.time = time;
		this.persons = persons;
	}
	
	public int getPersons() {
		return persons;
	}
	public void setPersons(int persons) {
		this.persons = persons;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	
	/**
	 * Constructs a <code>String</code> with all attributes
	 * in name = value format.
	 *
	 * @return a <code>String</code> representation 
	 * of this object.
	 */
	public String toString()
	{
	    final String TAB = "    ";
	    
	    String retValue = "";
	    
	    retValue = "RestaurantInquiry ( "
	        + super.toString() + TAB
	        + "time = " + this.time + TAB
	        + "persons = " + this.persons + TAB
	        + " )";
	    
	    return retValue;
	}

	
	
	
}
